#!/bin/bash

url=https://open.feishu.cn/open-apis/bot/v2/hook/53254cdd-117d-49c0-9382-395023c35610

text=$1
shift
content=$*

wget https://www.jmdkina.cn > /dev/null 2>&1
ret=$?
echo "ret : $ret"
retStr="Fail"
if [ $ret -eq 0 ]; then
	retStr="Success"
fi

curl "$url" \
	-H 'Content-Type: application/json' \
	-d "
{
	\"msg_type\":\"text\",
	\"content\": {
	    \"text\": \"jmdkina: $retStr\"
	}
}"
